package com.lq.javawebTest.filter;

import com.lq.javawebTest.core.entity.HttpRequest;
import com.lq.javawebTest.core.entity.HttpResponse;
import com.lq.javawebTest.core.inter.Filter;

public class CharsetFilter implements Filter {
    @Override
    public Boolean preFilter(HttpRequest request, HttpResponse response) {
        response.setHeader("Content-Type", "text/html;charset=utf-8");
        response.setHeader("LLLLLLLQQQQQQQQ", "LiuQiangNiuBi");
        return true;
    }

    @Override
    public Boolean postFilter(HttpRequest request, HttpResponse response) {
        return true;
    }

}
